//
//  BaseTableViewController.h
//  KeleAppProject
//
//  Created by 周岑 on 2018/1/14.
//  Copyright © 2018年 Cen Zhou. All rights reserved.
//

#import "KeleBaseViewController.h"

//得到分页列表标识：得到第一页
extern NSString * const GET_PAGE_NEW;
//得到分页列表标识：得到下一页
extern NSString * const GET_PAGE_NEXT;

@interface BaseTableViewController : KeleBaseViewController

@property (nonatomic, assign) BOOL isShowLine;
@property (nonatomic, assign) NSInteger pageNum;
@property (nonatomic, strong) UITableView *tableView;

@property (nonatomic, strong) NSMutableArray *sourceData;


- (void)loadTableViewWithFrame:(CGRect)frame
                      delegate:(id)delegate;

- (void)getDataSourceWithPage:(NSString *)page
                        start:(NSInteger)start;

- (UITableViewCell *) tableView:(UITableView *)tableView
          cellForRowAtIndexPath:(NSIndexPath *)indexPath;

- (CGFloat)tableView:(UITableView *)tableView
heightForRowAtIndexPath:(NSIndexPath *)indexPath;

- (void) tableView:(UITableView *)tableView
didSelectRowAtIndexPath:(NSIndexPath *)indexPath;

- (void)upLoadMore;
- (void)downRefresh;
- (void)refreshListData:(NSMutableArray *)dataArr
                   flag:(NSString *)flag;

@end
